FROM openjdk:8-jdk-alpine

ARG workdir=/sentinel-dashboard

RUN mkdir -p ${workdir}/target
RUN mkdir -p ${workdir}/conf
RUN mkdir -p ${workdir}/logs

WORKDIR ${workdir}

RUN wget https://gitee.com/haiyang9352/Sentinel/releases/download/1.8.2-dashboard-nacos-datasource-2/sentinel-dashboard.jar -O target/sentinel-dashboard.jar
ADD ./conf/application.properties conf

EXPOSE 8080

ENTRYPOINT /usr/bin/java -jar /sentinel-dashboard/target/sentinel-dashboard.jar --spring.config.additional-location=file:/sentinel-dashboard/conf/